package JDK8新性质.引用.方法引用;


import Arrays类.Student;

public class CompareByDate {
    public static int compareByAge(Student o1,Student o2) {
        return o1.getAge() - o2.getAge();
    }
    public int compareByAgeDesc(Student o1, Student o2) {
        return o1.getAge() - o2.getAge();
    }
}
